<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.setDisableTouch</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>setDisableTouch</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
setDisableTouch(b)
</div>
<p class="heading2">Description</p>
<div class="content">
Specifies whether to disable touch support for zooming and scrolling.<br><br>
By default, if <a href="JsChartViewer.setMouseUsage.htm">JsChartViewer.setMouseUsage</a> is used to set the mouse for zooming and scrolling usage, certain touch gestures will automatically be enabled for the same actions. For example, if mouse drag scrolling of the chart is enabled, using touch swipe can also scroll the chart. This will disable the default usage of the touch gesture. For example, the browser by default uses touch swipe to scroll the web page. This will be disabled if touch swipe is used to scroll the chart.<br><br>
The setDisableTouch method can be used to disable touch support for zooming and scrolling, so as to restore the default touch gesture behaviour.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>b</td><td>(Mandatory)</td><td>True to disable touch support for zooming and scrolling, false otherwise.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
